{{extend "config_layout.html"}}

{{block menu}}
{{menu('config')}}
{{end}}

{{block sub_menu}}
{{sub_menu(menu_items, 'my_config', 'information')}}
{{end}}

{{block content_main}}
{{use "jquery", css_only=True}}
<div class="col_12 center">
    <table border="0" width="100%">
        <tr>
        <td width="100" valign="top" align="center">
            {{if request.user and request.user.id==object.id:}}
            <a href="{{=url_for('config.views_users.config_users_edit_image')}}" title="{{=_('Click to change portrait')}}"><img src="{{=image_url}}" /></a><br/><p>点击头像更新</p>
            {{else:}}
            <img src="{{=image_url}}" class="portrait"/>
            {{pass}}
        </td>
        <td>
            <div class="box">
                <h2>用户信息</h2>
                <div class="box-body">
                    {{embed view}}
                    <div style="padding:5px;">
                    <a href="{{=url_for('config.views_users.config_user_edit')}}">编辑</a>
                    </div>
                </div>
            </div>
        </td>
        </tr>
    </table>
</div>
{{end}}
